/**
 * Created by john on 16/8/24.
 */
var express=require("express");
var multiparty = require('connect-multiparty');
var multipartyMiddleware = multiparty();

var app=express();
app.use(multipartyMiddleware);
app.use(express.static("./public"))

app.route("/upload")
    .post(function (req,res) {
        console.log("upl...post"+"....."+req.files.file.name);
        res.json({size:0});
    })
    .get(function (req,res) {
        console.log("upl...post");
        res.json({size:0});
    })
app.listen(3000);